﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Renewal.aspx.cs" Inherits="PMS.Web.Renewal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="css/grouplist.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">

        //显示
        function showContentDiv(t) {
            $(".contentDiv").hide();
            $(".contentDiv").eq(t).show();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hid_ProjectID" runat="server" Value="0" />
    <asp:HiddenField ID="hid_ID" runat="server" Value="0" />
    <div style="width: 900px;">
        <table width="100%">
            <tr>
                <td align="right" style="width: 120px;">
                    项目类型：
                </td>
                <td align="left">
                    <asp:Label ID="lab_ProjectType" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" style="width: 100px;">
                    工程编号：
                </td>
                <td align="left">
                    <asp:Label ID="lab_ProjectID" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
                <td align="right" style="width: 100px;">
                    JDE号：
                </td>
                <td align="left">
                    <asp:Label ID="lab_JDEID" ForeColor="Red" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    城市：
                </td>
                <td>
                    <asp:Label ID="lab_City" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    项目名称：
                </td>
                <td colspan="3">
                    <asp:Label ID="lab_ProjectName" ForeColor="Red" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    系统安装地址：
                </td>
                <td>
                    <asp:Label ID="lab_SystemPath" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    客户联系人：
                </td>
                <td>
                    <asp:Label ID="lab_Customer" ForeColor="Red" runat="server"></asp:Label>
                </td>
                <td align="right">
                    联系电话：
                </td>
                <td>
                    <asp:Label ID="lab_CustomerTel" ForeColor="Red" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <img src="image/mainpage_line.jpg" style="margin-bottom: 5px; margin-top: 5px;" />
        <div class="contentDiv">
            <table>
                <tr>
                    <td align="right" style="padding-right: 4px">
                        <asp:Label ID="CalendarFrom" runat="server" Text="From"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_FromDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td align="right" style="padding-right: 4px">
                        <asp:Label ID="CalendarTo" runat="server" Text="To"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_ToDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td style="padding-right: 4px">
                        <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="BlueButton_Min" OnClick="btn_Search_Click" />
                    </td>
                    <td style="padding-right: 4px">
                        <asp:Button ID="btn_Export" runat="server" Text="导出" CssClass="BlueButton_Min" OnClick="btn_Export_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btn_Add" runat="server" Text="添加" CssClass="BlueButton_Min" OnClientClick="showContentDiv(1);return false;" />
                    </td>
                </tr>
            </table>
            <img src="image/mainpage_line.jpg" style="margin: 5px 0px 5px 0px;" />
            <asp:GridView ID="gv_PMS_ProjectRenewal" runat="server" AutoGenerateColumns="False"
                OnRowDataBound="gv_PMS_ProjectRenewal_RowDataBound" HeaderStyle-CssClass="GridHeader"
                CssClass="GridTable" HeaderStyle-Height="23px" Width="100%" ShowHeaderWhenEmpty="True"
                DataKeyNames="id" EmptyDataText="没有数据" EmptyDataRowStyle-CssClass="GridTableTDCenter"
                OnRowCommand="gv_PMS_ProjectRenewal_RowCommand">
                <Columns>
                    <asp:BoundField DataField="renewalNo" HeaderText="报修单号" ReadOnly="True" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="repairsDate" HeaderText="报修日期" DataFormatString="{0:yyyy-MM-dd}"
                        HeaderStyle-CssClass="GridHeader" ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="repairsPeople" HeaderText="报修人" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="repairsTel" HeaderText="报修人电话" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="status" HeaderText="当前状态" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTD">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="maintainPeople" HeaderText="维修工程师" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTD">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="completeDate" HeaderText="完成日期" HeaderStyle-CssClass="GridHeader"
                        ItemStyle-CssClass="GridTableTDCenter" DataFormatString="{0:yyyy-MM-dd}">
                        <HeaderStyle Width="10%" />
                        <ItemStyle Width="10%" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imabtn_Edit" runat="server" CausesValidation="False" CommandName="Edited"
                                ImageUrl="~/image/Edit.gif" Text="编辑" CommandArgument='<%#Eval("id") %>' />
                        </ItemTemplate>
                        <HeaderStyle CssClass="GridHeader" Width="4%" />
                        <ItemStyle CssClass="GridTableTDCenter" Width="4%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imabtn_Delete" runat="server" CausesValidation="False" CommandName="Del"
                                ImageUrl="~/image/Delete.gif" Text="删除" CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('确定删除?');" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="GridHeader" Width="4%" />
                        <ItemStyle CssClass="GridTableTDCenter" Width="4%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="详细" ShowHeader="False">
                        <ItemTemplate>
                            <asp:ImageButton ID="imabtn_Details" runat="server" CausesValidation="False" CommandName="Details"
                                ImageUrl="~/image/detail.gif" Text="详细" CommandArgument='<%#Eval("id") %>' />
                        </ItemTemplate>
                        <HeaderStyle CssClass="GridHeader" Width="4%" />
                        <ItemStyle CssClass="GridTableTDCenter" Width="4%" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="contentDiv" style="display: none;">
            <div style="font-size: 14px; font-weight: bold;">
                客户保修</div>
            <table width="100%">
                <tr>
                    <td align="right">
                        报修日期
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_RepairsDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td align="right">
                        报修人员
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txt_RepairsName" runat="server">
                        </asp:TextBox>
                    </td>
                    <td align="right">
                        联系方式
                    </td>
                    <td>
                        <asp:TextBox ID="txt_RepairsTel" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        故障描述
                    </td>
                    <td colspan="5">
                        <asp:TextBox ID="txt_BugDescription" runat="server" TextMode="MultiLine" Width="90%"
                            Height="50px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        维修工程师
                    </td>
                    <td>
                        <asp:TextBox ID="txt_MaintainPeople" runat="server">
                        </asp:TextBox>
                    </td>
                    <td align="right">
                        处理日期
                    </td>
                    <td>
                        <asp:TextBox ID="txt_MaintainDate" runat="server" class="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                    </td>
                    <td align="right">
                        派工单号
                    </td>
                    <td>
                        <asp:TextBox ID="txt_ID" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        确认故障类型
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl_BugType" runat="server">
                            <asp:ListItem>CCTV</asp:ListItem>
                            <asp:ListItem>AC</asp:ListItem>
                            <asp:ListItem>BA</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td align="right">
                        故障设备
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Device" runat="server">
                        </asp:TextBox>
                    </td>
                    <td align="right">
                        设备型号
                    </td>
                    <td>
                        <asp:TextBox ID="txt_DeviceType" runat="server">
                        </asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        处理措施描述
                    </td>
                    <td colspan="5">
                        <asp:TextBox ID="txt_MaintainDescription" runat="server" TextMode="MultiLine" Width="90%"
                            Height="50px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        当前状态
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl_State" runat="server">
                            <asp:ListItem>未解决</asp:ListItem>
                            <asp:ListItem>已解决</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="lab_CompleteTitle" runat="server" Text=""></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lab_CompleteDate" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
            <table style="width: 100%;">
                <tr>
                    <td align="center">
                        <asp:Button ID="btn_Create" CssClass="BlueButton_Min" runat="server" Text="保存" OnClick="btn_Create_Click" />
                        <input id="btn_Return" style="margin-left: 20px;" class="BlueButton_Min" value="返回"
                            type="button" onclick="showContentDiv(0);" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
